import request from '@/utils/request'
export const kaihu = data => {
  return request({
    url: '/service-bank/airui/api/openAccount/kaihu',
    method: 'post',
    data: data,
  })
}
export const findName = data => {
  return request({
    url: '/service-bank/airui/api/openAccount/findName',
    method: 'post',
    data: data,
  })
}
export const findNames = relName => {
  return request({
    url: '/service-bank/airui/api/openAccount/findNames/' + relName,
    method: 'post',
    params: { relName },
  })
}
export const payPassword = data => {
  return request({
    url: '/service-bank/airui/api/openAccount/payPassword',
    method: 'post',
    data: data,
  })
}
export const zhuanzhang = data => {
  return request({
    url: '/service-bank/airui/api/openAccount/zhuanzhang',
    method: 'post',
    data: data,
  })
}
export const findBankCard = data => {
  return request({
    url: '/service-bank/airui/api/openAccount/findBankCard',
    method: 'post',
    data: data,
  })
}
export const findType = data => {
  return request({
    url: '/service-bank/airui/api/openAccount/findTypes',
    method: 'post',
  })
}
export const yzpassword = data => {
  return request({
    url: '/service-bank/airui/api/openAccount/yzpassword',
    method: 'post',
    data,
  })
}
export const yzBankCard = data => {
  return request({
    url: '/service-bank/airui/api/openAccount/yzBankCards',
    method: 'post',
    data: data,
  })
}
export const yzTypes = data => {
  return request({
    url: '/service-bank/airui/api/openAccount/yzType',
    method: 'post',
    data: data,
  })
}
export const findBalance = bankCard => {
  return request({
    url: '/service-bank/airui/api/openAccount/findBalance/' + bankCard,
    method: 'post',
    params: bankCard,
  })
}
export const yzBalances = data => {
  return request({
    url: '/service-bank/airui/api/openAccount/yzBalances',
    method: 'post',
    data: data,
  })
}
